<!-- 高级注册信息javascript 开始  -->
<script type="text/javascript" src="../plug-in/commonJS/prototype.js"></script>
<script type="text/javascript">
	function showadv() {
		if(document.register.advshow.checked == true) {
			document.getElementById('registeradv').style.display = "block";
		} else {
			document.getElementById('registeradv').style.display = "none";
		}
	}
	function isexist(){
		var user_name = $('user_name').value;
		var url = 'ajax.php';
		var pars = 'action=isexist&user_name='+user_name;
		var myAjax = new Ajax.Request(
		url,
		{
		method: 'post',
		parameters: pars,
		onComplete: showResponse
		});
	}
	function showResponse(originalRequest){
		if(originalRequest.responseText=='1'){
			$('msg_info').innerHTML="<font color='red'>此用户名已经存在，请重新输入</font>";
		}else{
			$('msg_info').innerHTML="<font color='green'>此用户名无人使用，可正常使用</font>";
		}
	}
</script>
<script language="javascript" src="../plug-in/area/myjsframe.js"></script>
<script language="javascript" src="../plug-in/area/area.js"></script>
<!-- 高级注册信息javascript 结束  -->

<div class="height12"></div>
<div id="main">
	<div id="reg">
	<form method="post" name="register" action="">
	  <table width="950" border="0">
    <tr class="jifentr2">
      <td colspan="2" align="center" style="background:#CCCCCC"><span style="font-size:25px;font-weight:bold;color:green;">会员注册</span><span class="white">（请仔细填写以下信息）</span></td>
    </tr>	 
    <tr class="jifentr2">
      <td width="150" align="right" class="tdright10">用户名<span style="color:#FF8D41;">*</span></td>
      <td width="800" class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="user_name" onblur="isexist()">　<span class="gray">4-20个字符（可使用小写字母、数字、下划线、中文字，用户名一经注册将不可更改）</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">email<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="email">　<span class="gray">请填入个人联系邮件地址</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">真实姓名<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="real_name">　<span class="gray">请填写个人真实姓名</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">个人手机<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="mobile">　<span class="gray">我们会将重要信息通过短信和您确认（此号码将是您的收货手机号码）</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">密码<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10"><INPUT class="textheight"  type="password" style="width:290px!important;width:270px;" value="" name="password">　<span class="gray">4-20 位数字或者字符</span></td>
    </tr>   
    <tr class="jifentr2">
      <td align="right" class="tdright10">确认密码<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10"><INPUT class="textheight" type="password"  style="width:290px!important;width:270px;"  value="" name="password_c">　<span class="gray">4-20 位数字或者字符</span></td>
    </tr>
	<tr class="jifentr2">
      <td align="right" class="tdright10">所在区域<span style="color:#FF8D41;">*</span></td>
      <td class="tdleft10">
	<script type="text/javascript">	
		var area = new AreaCtrl("省份:","城市:","地区:");
		area.value = <?{if $arrData.country != ""}?><?{$arrData.county}?><?{else}?><?{$arrData.city|default:"310100"}?><?{/if}?>;
		area.name = ["province","city","country"];
		area.write();
	</script>
	  　<span class="gray">请选择您所在的区域（该区域将是您的收货区域）</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">公司名称</td>
      <td class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="company_cn">　<span class="gray">请填写公司名称</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">公司地址</td>
      <td class="tdleft10"><INPUT class="textheight" type="text" size="60" value="" name="address">　<span class="gray">请填写公司地址（该地址将是您的收货地址）</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">邮政编码</td>
      <td class="tdleft10"><INPUT class="textheight"  type="text" size="40" value="" name="postcode">　<span class="gray">请填写邮政编码（该邮编将是您的收货邮编）</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">办公电话</td>
      <td class="tdleft10"><INPUT class="textheight" type="text" size="40" value="" name="tel">　<span class="gray">请填写固定电话 (该电话将是您的收货联系电话)</span></td>
    </tr>
    <tr class="jifentr2">
      <td align="right" class="tdright10">传真号码</td>
      <td class="tdleft10"><INPUT class="textheight" type="text" size="40" value="" name="fax">　<span class="gray">请填入传真号码</span></td>
    </tr>
	<tr class="jifentr2">
      <td align="right" class="tdright10">验证码</td>
      <td class="tdleft10"><input class="textheight" name="authCode" type="text" id="authCode" size="10" onfocus="var validate_obj = document.getElementById('divcode1');validate_obj.innerHTML ='<img src=../plug-in/verifyCode/authimg.php align=top alt=看不清？点击更换 name=imgVerify id=imgVerify onClick=this.src=this.src+\'?\' /> 请输入左侧字符，看不清楚点图片更换。';" /><span id="divcode1">点击显示验证码</span></td>
    </tr>
	<tr class="jifentr2">
	  <td align="right" class="tdright10"></td>
      <td align="left"><input class="submitbottontype" type="submit" name="Submit" value="注册">　
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="submitbottontype" type="reset" name="Submit2" value="重置"></td>
    </tr>
  </table>
	</form>
	</div>	
</div>	
<div class="height12"></div>